<div ms-controller="newsList" class="newsList">
	<div class="userTop">
		<h2 class="title">资讯列表</h2>
		<div class="topMain clearfix">
			<input type="text" class="inputSize" placeholder="请输入资讯名称" ms-duplex="infoName"/>
			<select class="selectSize" ms-duplex="select" <!--data-duplex-changed="selectchange"-->>
				<option value="">选择状态</option>
				<option value="t">未发布</option>
				<option value="s">发布成功</option>
			</select>
			<button class="btn1"  ms-click="Information">搜索</button>
			<button class="btnAdd" ms-click="click2">新建资讯</button>
		</div>
	</div>
	<table class="table table-striped">
		<thead>
			<tr>
				<th>ID</th>
				<th>资讯名称</th>
				<th>更新时间</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ms-repeat="list">
				<td>{{el.id}}</td>
				<td>{{el.title}}</td>
				<td>{{el.updatetime  | date("yyyy-MM-dd HH:mm:ss")}}</td>
				<td ms-if="el.delflag != 's'"><label>未发布</label></td>
				<td ms-if="el.delflag == 's'"><label>发布成功</label></td>
				<td class="edit" ms-if="el.delflag != 's'">
					<div ms-click="updateArticle(el.id,0)">
						<!--<img src="modules/newsList/img/yan-1.png" />-->
						<i class="iconfont">&#xe60f;</i>
						<h1>发布</h1>
					</div>
					<div ms-click="click(el.id)">
						<!--<img src="modules/newsList/img/yan-1.png" />-->
						<i class="iconfont">&#xe611;</i>
						<h1>查看</h1>
					</div>
					<div ms-click = "removeRemote($index, $remove,el.id)">
						<!--<img src="modules/newsList/img/del.png" />-->
						<i class="iconfont">&#xe60d;</i>
						<h1>删除</h1>
					</div>
				</td>
				<td class="edit" ms-if="el.delflag == 's'">
					<div ms-click="updateArticle(el.id,1)">
						<!--<img src="modules/newsList/img/yan-1.png" />-->
						<i class="iconfont">&#xe613;</i>
						<h1>取消发布</h1>
					</div>
					<div ms-click="click(el.id)">
						<i class="iconfont">&#xe611;</i>
						<h1>查看</h1>
					</div>
					<div ms-click = "removeRemote($index, $remove,el.id)">
						<!--<img src="modules/newsList/img/del.png" />-->
						<i class="iconfont">&#xe60d;</i>
						<h1>删除</h1>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
    <div ms-include-src="paging">
    </div>
</div>
